package com.quanyan.financialSystem.entity.db;

import com.quanyan.common.Plugin.Page;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TbBizPlaceBranchPlaceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Page page;

    public TbBizPlaceBranchPlaceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPage(Page page) {
        this.page=page;
    }

    public Page getPage() {
        return page;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andCityIdIsNull() {
            addCriterion("city_id is null");
            return (Criteria) this;
        }

        public Criteria andCityIdIsNotNull() {
            addCriterion("city_id is not null");
            return (Criteria) this;
        }

        public Criteria andCityIdEqualTo(Integer value) {
            addCriterion("city_id =", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdNotEqualTo(Integer value) {
            addCriterion("city_id <>", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdGreaterThan(Integer value) {
            addCriterion("city_id >", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("city_id >=", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdLessThan(Integer value) {
            addCriterion("city_id <", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdLessThanOrEqualTo(Integer value) {
            addCriterion("city_id <=", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdIn(List<Integer> values) {
            addCriterion("city_id in", values, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdNotIn(List<Integer> values) {
            addCriterion("city_id not in", values, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdBetween(Integer value1, Integer value2) {
            addCriterion("city_id between", value1, value2, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdNotBetween(Integer value1, Integer value2) {
            addCriterion("city_id not between", value1, value2, "cityId");
            return (Criteria) this;
        }

        public Criteria andPlaceNameIsNull() {
            addCriterion("place_name is null");
            return (Criteria) this;
        }

        public Criteria andPlaceNameIsNotNull() {
            addCriterion("place_name is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceNameEqualTo(String value) {
            addCriterion("place_name =", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameNotEqualTo(String value) {
            addCriterion("place_name <>", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameGreaterThan(String value) {
            addCriterion("place_name >", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameGreaterThanOrEqualTo(String value) {
            addCriterion("place_name >=", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameLessThan(String value) {
            addCriterion("place_name <", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameLessThanOrEqualTo(String value) {
            addCriterion("place_name <=", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameLike(String value) {
            addCriterion("place_name like", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameNotLike(String value) {
            addCriterion("place_name not like", value, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameIn(List<String> values) {
            addCriterion("place_name in", values, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameNotIn(List<String> values) {
            addCriterion("place_name not in", values, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameBetween(String value1, String value2) {
            addCriterion("place_name between", value1, value2, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceNameNotBetween(String value1, String value2) {
            addCriterion("place_name not between", value1, value2, "placeName");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIsNull() {
            addCriterion("place_id is null");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIsNotNull() {
            addCriterion("place_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceIdEqualTo(Integer value) {
            addCriterion("place_id =", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotEqualTo(Integer value) {
            addCriterion("place_id <>", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdGreaterThan(Integer value) {
            addCriterion("place_id >", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("place_id >=", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdLessThan(Integer value) {
            addCriterion("place_id <", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdLessThanOrEqualTo(Integer value) {
            addCriterion("place_id <=", value, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdIn(List<Integer> values) {
            addCriterion("place_id in", values, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotIn(List<Integer> values) {
            addCriterion("place_id not in", values, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdBetween(Integer value1, Integer value2) {
            addCriterion("place_id between", value1, value2, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("place_id not between", value1, value2, "placeId");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyIsNull() {
            addCriterion("place_money is null");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyIsNotNull() {
            addCriterion("place_money is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyEqualTo(BigDecimal value) {
            addCriterion("place_money =", value, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyNotEqualTo(BigDecimal value) {
            addCriterion("place_money <>", value, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyGreaterThan(BigDecimal value) {
            addCriterion("place_money >", value, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("place_money >=", value, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyLessThan(BigDecimal value) {
            addCriterion("place_money <", value, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("place_money <=", value, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyIn(List<BigDecimal> values) {
            addCriterion("place_money in", values, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyNotIn(List<BigDecimal> values) {
            addCriterion("place_money not in", values, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("place_money between", value1, value2, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("place_money not between", value1, value2, "placeMoney");
            return (Criteria) this;
        }

        public Criteria andMenberChargeIsNull() {
            addCriterion("menber_charge is null");
            return (Criteria) this;
        }

        public Criteria andMenberChargeIsNotNull() {
            addCriterion("menber_charge is not null");
            return (Criteria) this;
        }

        public Criteria andMenberChargeEqualTo(BigDecimal value) {
            addCriterion("menber_charge =", value, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeNotEqualTo(BigDecimal value) {
            addCriterion("menber_charge <>", value, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeGreaterThan(BigDecimal value) {
            addCriterion("menber_charge >", value, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("menber_charge >=", value, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeLessThan(BigDecimal value) {
            addCriterion("menber_charge <", value, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("menber_charge <=", value, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeIn(List<BigDecimal> values) {
            addCriterion("menber_charge in", values, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeNotIn(List<BigDecimal> values) {
            addCriterion("menber_charge not in", values, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("menber_charge between", value1, value2, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andMenberChargeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("menber_charge not between", value1, value2, "menberCharge");
            return (Criteria) this;
        }

        public Criteria andSendMoneyIsNull() {
            addCriterion("send_money is null");
            return (Criteria) this;
        }

        public Criteria andSendMoneyIsNotNull() {
            addCriterion("send_money is not null");
            return (Criteria) this;
        }

        public Criteria andSendMoneyEqualTo(BigDecimal value) {
            addCriterion("send_money =", value, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyNotEqualTo(BigDecimal value) {
            addCriterion("send_money <>", value, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyGreaterThan(BigDecimal value) {
            addCriterion("send_money >", value, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("send_money >=", value, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyLessThan(BigDecimal value) {
            addCriterion("send_money <", value, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("send_money <=", value, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyIn(List<BigDecimal> values) {
            addCriterion("send_money in", values, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyNotIn(List<BigDecimal> values) {
            addCriterion("send_money not in", values, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("send_money between", value1, value2, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andSendMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("send_money not between", value1, value2, "sendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyIsNull() {
            addCriterion("dis_send_money is null");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyIsNotNull() {
            addCriterion("dis_send_money is not null");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyEqualTo(BigDecimal value) {
            addCriterion("dis_send_money =", value, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyNotEqualTo(BigDecimal value) {
            addCriterion("dis_send_money <>", value, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyGreaterThan(BigDecimal value) {
            addCriterion("dis_send_money >", value, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("dis_send_money >=", value, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyLessThan(BigDecimal value) {
            addCriterion("dis_send_money <", value, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("dis_send_money <=", value, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyIn(List<BigDecimal> values) {
            addCriterion("dis_send_money in", values, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyNotIn(List<BigDecimal> values) {
            addCriterion("dis_send_money not in", values, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("dis_send_money between", value1, value2, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andDisSendMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("dis_send_money not between", value1, value2, "disSendMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyIsNull() {
            addCriterion("business_money is null");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyIsNotNull() {
            addCriterion("business_money is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyEqualTo(BigDecimal value) {
            addCriterion("business_money =", value, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyNotEqualTo(BigDecimal value) {
            addCriterion("business_money <>", value, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyGreaterThan(BigDecimal value) {
            addCriterion("business_money >", value, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("business_money >=", value, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyLessThan(BigDecimal value) {
            addCriterion("business_money <", value, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("business_money <=", value, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyIn(List<BigDecimal> values) {
            addCriterion("business_money in", values, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyNotIn(List<BigDecimal> values) {
            addCriterion("business_money not in", values, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("business_money between", value1, value2, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("business_money not between", value1, value2, "businessMoney");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeIsNull() {
            addCriterion("place_income is null");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeIsNotNull() {
            addCriterion("place_income is not null");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeEqualTo(BigDecimal value) {
            addCriterion("place_income =", value, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeNotEqualTo(BigDecimal value) {
            addCriterion("place_income <>", value, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeGreaterThan(BigDecimal value) {
            addCriterion("place_income >", value, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("place_income >=", value, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeLessThan(BigDecimal value) {
            addCriterion("place_income <", value, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("place_income <=", value, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeIn(List<BigDecimal> values) {
            addCriterion("place_income in", values, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeNotIn(List<BigDecimal> values) {
            addCriterion("place_income not in", values, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("place_income between", value1, value2, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andPlaceIncomeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("place_income not between", value1, value2, "placeIncome");
            return (Criteria) this;
        }

        public Criteria andMultMoneyIsNull() {
            addCriterion("mult_money is null");
            return (Criteria) this;
        }

        public Criteria andMultMoneyIsNotNull() {
            addCriterion("mult_money is not null");
            return (Criteria) this;
        }

        public Criteria andMultMoneyEqualTo(BigDecimal value) {
            addCriterion("mult_money =", value, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyNotEqualTo(BigDecimal value) {
            addCriterion("mult_money <>", value, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyGreaterThan(BigDecimal value) {
            addCriterion("mult_money >", value, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("mult_money >=", value, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyLessThan(BigDecimal value) {
            addCriterion("mult_money <", value, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("mult_money <=", value, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyIn(List<BigDecimal> values) {
            addCriterion("mult_money in", values, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyNotIn(List<BigDecimal> values) {
            addCriterion("mult_money not in", values, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("mult_money between", value1, value2, "multMoney");
            return (Criteria) this;
        }

        public Criteria andMultMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("mult_money not between", value1, value2, "multMoney");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitIsNull() {
            addCriterion("business_profit is null");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitIsNotNull() {
            addCriterion("business_profit is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitEqualTo(BigDecimal value) {
            addCriterion("business_profit =", value, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitNotEqualTo(BigDecimal value) {
            addCriterion("business_profit <>", value, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitGreaterThan(BigDecimal value) {
            addCriterion("business_profit >", value, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("business_profit >=", value, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitLessThan(BigDecimal value) {
            addCriterion("business_profit <", value, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitLessThanOrEqualTo(BigDecimal value) {
            addCriterion("business_profit <=", value, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitIn(List<BigDecimal> values) {
            addCriterion("business_profit in", values, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitNotIn(List<BigDecimal> values) {
            addCriterion("business_profit not in", values, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("business_profit between", value1, value2, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andBusinessProfitNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("business_profit not between", value1, value2, "businessProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitIsNull() {
            addCriterion("income_profit is null");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitIsNotNull() {
            addCriterion("income_profit is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitEqualTo(BigDecimal value) {
            addCriterion("income_profit =", value, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitNotEqualTo(BigDecimal value) {
            addCriterion("income_profit <>", value, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitGreaterThan(BigDecimal value) {
            addCriterion("income_profit >", value, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("income_profit >=", value, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitLessThan(BigDecimal value) {
            addCriterion("income_profit <", value, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitLessThanOrEqualTo(BigDecimal value) {
            addCriterion("income_profit <=", value, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitIn(List<BigDecimal> values) {
            addCriterion("income_profit in", values, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitNotIn(List<BigDecimal> values) {
            addCriterion("income_profit not in", values, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("income_profit between", value1, value2, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("income_profit not between", value1, value2, "incomeProfit");
            return (Criteria) this;
        }

        public Criteria andRateBusinessIsNull() {
            addCriterion("rate_business is null");
            return (Criteria) this;
        }

        public Criteria andRateBusinessIsNotNull() {
            addCriterion("rate_business is not null");
            return (Criteria) this;
        }

        public Criteria andRateBusinessEqualTo(BigDecimal value) {
            addCriterion("rate_business =", value, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessNotEqualTo(BigDecimal value) {
            addCriterion("rate_business <>", value, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessGreaterThan(BigDecimal value) {
            addCriterion("rate_business >", value, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rate_business >=", value, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessLessThan(BigDecimal value) {
            addCriterion("rate_business <", value, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rate_business <=", value, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessIn(List<BigDecimal> values) {
            addCriterion("rate_business in", values, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessNotIn(List<BigDecimal> values) {
            addCriterion("rate_business not in", values, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate_business between", value1, value2, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateBusinessNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate_business not between", value1, value2, "rateBusiness");
            return (Criteria) this;
        }

        public Criteria andRateIncomeIsNull() {
            addCriterion("rate_income is null");
            return (Criteria) this;
        }

        public Criteria andRateIncomeIsNotNull() {
            addCriterion("rate_income is not null");
            return (Criteria) this;
        }

        public Criteria andRateIncomeEqualTo(BigDecimal value) {
            addCriterion("rate_income =", value, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeNotEqualTo(BigDecimal value) {
            addCriterion("rate_income <>", value, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeGreaterThan(BigDecimal value) {
            addCriterion("rate_income >", value, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("rate_income >=", value, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeLessThan(BigDecimal value) {
            addCriterion("rate_income <", value, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("rate_income <=", value, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeIn(List<BigDecimal> values) {
            addCriterion("rate_income in", values, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeNotIn(List<BigDecimal> values) {
            addCriterion("rate_income not in", values, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate_income between", value1, value2, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andRateIncomeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("rate_income not between", value1, value2, "rateIncome");
            return (Criteria) this;
        }

        public Criteria andDayTimeIsNull() {
            addCriterion("day_time is null");
            return (Criteria) this;
        }

        public Criteria andDayTimeIsNotNull() {
            addCriterion("day_time is not null");
            return (Criteria) this;
        }

        public Criteria andDayTimeEqualTo(Date value) {
            addCriterionForJDBCDate("day_time =", value, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("day_time <>", value, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("day_time >", value, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("day_time >=", value, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeLessThan(Date value) {
            addCriterionForJDBCDate("day_time <", value, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("day_time <=", value, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeIn(List<Date> values) {
            addCriterionForJDBCDate("day_time in", values, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("day_time not in", values, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("day_time between", value1, value2, "dayTime");
            return (Criteria) this;
        }

        public Criteria andDayTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("day_time not between", value1, value2, "dayTime");
            return (Criteria) this;
        }

        public Criteria andCodeIsNull() {
            addCriterion("code is null");
            return (Criteria) this;
        }

        public Criteria andCodeIsNotNull() {
            addCriterion("code is not null");
            return (Criteria) this;
        }

        public Criteria andCodeEqualTo(String value) {
            addCriterion("code =", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotEqualTo(String value) {
            addCriterion("code <>", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThan(String value) {
            addCriterion("code >", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeGreaterThanOrEqualTo(String value) {
            addCriterion("code >=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThan(String value) {
            addCriterion("code <", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLessThanOrEqualTo(String value) {
            addCriterion("code <=", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeLike(String value) {
            addCriterion("code like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotLike(String value) {
            addCriterion("code not like", value, "code");
            return (Criteria) this;
        }

        public Criteria andCodeIn(List<String> values) {
            addCriterion("code in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotIn(List<String> values) {
            addCriterion("code not in", values, "code");
            return (Criteria) this;
        }

        public Criteria andCodeBetween(String value1, String value2) {
            addCriterion("code between", value1, value2, "code");
            return (Criteria) this;
        }

        public Criteria andCodeNotBetween(String value1, String value2) {
            addCriterion("code not between", value1, value2, "code");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}